package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotElevatorRepair;

import java.util.Date;

/**
 * 电梯维修业务对象 iot_elevator_repair
 *
 * @author lsl
 * @date 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotElevatorRepair.class, reverseConvertGenerate = false)
public class IotElevatorRepairBo extends BaseEntity {

    /**
     * 维修ID
     */
    @NotBlank(message = "维修ID不能为空", groups = {EditGroup.class})
    private Long repairId;

    /**
     * 关联电梯ID
     */
    @NotNull(message = "关联电梯ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long elevatorId;

    /**
     * 电梯名称
     */
    @NotBlank(message = "电梯名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String elevatorName;

    /**
     * 维修单号
     */
    @NotBlank(message = "维修单号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repairCode;

    /**
     * 故障单号
     */
    @NotBlank(message = "故障单号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String faultCode;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date startDate;

    /**
     * 是否停梯（N.否，Y.是）
     */
    @NotBlank(message = "是否停梯（N.否，Y.是）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String isStopElevator;

    /**
     * 提交时间
     */
    @NotNull(message = "提交时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date submitDate;

    /**
     * 维修用时
     */
    @NotBlank(message = "维修用时不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repairHours;

    /**
     * 更换配件
     */
    @NotBlank(message = "更换配件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String replaceParts;

    /**
     * 故障原因
     */
    @NotBlank(message = "故障原因不能为空", groups = {AddGroup.class, EditGroup.class})
    private String faultReason;

    /**
     * 维修方案
     */
    @NotBlank(message = "维修方案不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repairPlan;

    /**
     * 维修人ID
     */
    @NotNull(message = "维修人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long repairUserId;

    /**
     * 维修人
     */
    @NotBlank(message = "维修人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repairPeople;

    /**
     * 维修图片
     */
    @NotBlank(message = "维修图片不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repairImage;

    /**
     * 维修人签字
     */
    @NotBlank(message = "维修人签字不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repairSign;

    /**
     * 完成状态(0:确认完成;1:评价完成)
     */
    @NotBlank(message = "完成状态(0:确认完成;1:评价完成)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String doneStatus;

    /**
     * 当前流程状态 (1.已接受 2.已开始维修 3.已完成)
     */
    @NotNull(message = "当前流程状态 (1.已接受 2.已开始维修 3.已完成)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String processState;

    /**
     * 确认人
     */
    @NotBlank(message = "确认人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String confirmPeople;

    /**
     * 确认时间
     */
    @NotNull(message = "确认时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date confirmDate;

    /**
     * 确认人签字
     */
    @NotBlank(message = "确认人签字不能为空", groups = {AddGroup.class, EditGroup.class})
    private String confirmSign;

    /**
     * 评分
     */
    @NotBlank(message = "评分不能为空", groups = {AddGroup.class, EditGroup.class})
    private String score;

    /**
     * 评分内容
     */
    @NotBlank(message = "评分内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String scoreContent;

    /**
     * 派单人头像
     */
    private Long dispatchAvatar;

    /**
     * 派单人
     */
    @NotBlank(message = "派单人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dispatchPeople;

    /**
     * 派单时间
     */
    @NotNull(message = "派单时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date dispatchDate;

    /**
     * 上报类型(0:人工上报;1:智能设备;2:微信上报)
     */
    @NotBlank(message = "上报类型(0:人工上报;1:智能设备;2:微信上报)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String reportType;

    /**
     * 提交人
     */
    @NotBlank(message = "提交人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String submitter;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;

    /**
     * 是否大修
     */
    private String isOverhaul;

    /**
     * 1.维修完成提交 2.经理审核
     */
    private String type;

    /**
     * (1.待维修，2.待确认 ，3. 已完成)
     */
    private String reviewType;
}
